<script lang="ts">
    import Vue from 'vue';
    export default Vue.extend({
        mpType: 'app',
        async onLaunch() {
            console.log('App Launch')

            /**
             * 初始化Window页面大小
             */
            // 小程序系统信息
            await uni.getSystemInfo({
                success: (res) => {
                    let {windowWidth, windowHeight} = res
                    this.$store.commit(
                        'setWindow', {
                            windth: windowWidth + 'px',
                            height: windowHeight + 'px'
                        }
                    )
                }
            })
        },
        onShow() {
            console.log('App Show')
        },
        onHide() {
            console.log('App Hide')
        }
    });


</script>

<style>
    /*每个页面公共css */
</style>
